<?php
class EatingModel extends Orm_Base{
    public $table = 'eating';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'date' => array('type' => "varchar(10)",'comment' => '日期'),
        'week' => array('type' => "tinyint(1)",'comment' => '测量时间(1.周一、2.周二、3.周三、4.周四、5.周五、6.周六、7.周日'),
        'appetite' => array('type' => "tinyint(1)",'comment' => '饭量(1.少量、2.一般、3.大量)'),
        'type' => array('type' => "tinyint(1)",'comment' => '类型(1.用饭、2.加餐)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
        'at' => array('type' => "tinyint(1)",'comment' => '时间点(1.早上、2.上午、3.中午、4.下午、5.晚上)'),
        'sid' => array('type' => "int(11)",'comemnt' => '关联老人ID'),
    );
    public $pk = 'id';
}
?>
